#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for reverse_sd @(#)makefile	1.1 6/5/87 ESI
 	
CFLAGS = -DSCCS 
SPSLIB = /usr/esps/lib/libespsg.a
MANDIR = /usr/esps/man
SINC   = /usr/esps/include/esps
BINDIR = /usr/esps/bin
OLDBIN = /usr/esps/bin/old
LINT = att lint
LINTLIB = /usr/esps/lib/llib-lespsg.ln
PROGMOD = 0750
MANMOD = 0640
#
#

reverse_sd:	reverse_sd.o $(SPSLIB)
	cc reverse_sd.o $(SPSLIB) -lmr -lm -o reverse_sd

reverse_sd.o: $(SINC)/sps.h $(SINC)/sd.h

clean:
	rm -f reverse_sd.o reverse_sd

lint:	reverse_sd.c 
	lint -b $(LINTLIB) -lm $(OSFLAGS) reverse_sd.c > lint

install: reverse_sd
	-mv -f $(BINDIR)/reverse_sd $(OLDBIN)/reverse_sd
	-chmod $(PROGMOD) $(OLDBIN)/reverse_sd
	mv reverse_sd $(BINDIR)/reverse_sd
	-strip $(BINDIR)/reverse_sd
	chmod $(PROGMOD) $(BINDIR)/reverse_sd
	-diffmk  $(MANDIR)/man1/reverse_sd.1 reverse_sd.1 man.diff
	@echo diffmked man in man.diff
	-rm -f $(MANDIR)/man1/reverse_sd.1
	cp reverse_sd.1 $(MANDIR)/man1/reverse_sd.1
	chmod $(MANMOD) $(MANDIR)/man1/reverse_sd.1
